package com.eian.boot.module.system.permission.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
@Schema(name = "权限检查请求参数")
public class PermissionCheckRequest {
    @Schema(description = "权限编码列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "权限编码列表不能为空")
    private List<String> permissions;

    @Schema(description = "是否检查所有权限", defaultValue = "false")
    private Boolean all;
}
